<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

//require_once('custom/modules/Documents/SugarWidgets/SugarWidgetSubPanelCreateRevisionButton.php');
//require_once('custom/modules/Documents/SugarWidgets/SugarWidgetSubPanelDownloadRevisionButton.php');
//require_once('custom/modules/Documents/SugarWidgets/SugarWidgetSubPanelTopCreateDocumentButton.php');

$subpanel_layout = array(
	'top_buttons' => array(
		array('widget_class' => 'SubPanelTopCreateDocumentButton'),
		array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Documents','field_to_name_array'=>array('document_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
	),

	'where' => '',
	
	'list_fields'=> array(
		'download_latest_c' => array(
            'widget_class' => 'SubPanelUploadLastRevisionButton',
        ),
		'create_revision_a' => array(
			'widget_class' => 'SubPanelCreateRevisionButton',
		),	
		'document_name'=> array(
	    	'name' => 'document_name',
	 		'vname' => 'LBL_LIST_DOCUMENT_NAME',
			'widget_class' => 'SubPanelDetailViewLink',
	   ),
		'abstract'=>array(
			'name'=>'abstract',
            'vname' => 'LBL_ABSTRACT',
            'widget_class' => 'SubPanelDetailViewLink',
	   ),
		'template_type' => array(
	       'name' => 'template_type',
	       'vname' => 'LBL_ABSTRACT_SUBPANEL',
	   ),
	    'academic_major'=>array(
 	    	'name' => 'academic_major',
	 	    'vname' => 'LBL_ACADEMIC_MAJOR',
		),	
       'academic_minor'=>array(
 	    	'name' => 'academic_minor',
	 	    'vname' => 'LBL_ACADEMIC_MINOR',
		),
		'latest_rev_for_task'=>array(
	 	    'vname' => 'LBL_LAST_REV_FOR_TASK',
//	 	    'widget_class' => 'SubPanelTaskofLatestRevision',
		),		
		'date_modified'=>array(
	 		'vname' => 'LBL_DATE_MODIFIED',
		),
	
		'edit_button'=>array(
			'widget_class' => 'SubPanelEditButton',
		 	'module' => $module_name,
		),
		'remove_button'=>array(
			'widget_class' => 'SubPanelRemoveButton',
		 	'module' => $module_name,
		),
		'additional_button'=>array(
			'widget_class' => 'SubPaneladditionalButton',
			'module' => $module_name,
		),
	),	
);
?>
